<?php

/**
 * @author edson
 * @copyright 2011
 */

$rutafisica=$_SERVER["DOCUMENT_ROOT"]."/viventura/MDHoteles";
$ruta2=$_SERVER["DOCUMENT_ROOT"]."/viventura";
echo $rutafisica;
setlocale(LC_TIME, "es_ES"); 

include_once("conf/CConfig.php");
include_once("elements/head.tpl");
include_once("$ruta2/view/CDrawPage.php");
include_once("$ruta2/view/CDrawMenu.php");
include_once("$rutafisica/view/CDrawHotel.php");
$instance=new CDrawHotel();
CDrawMenu::getinstance()->setMenu();
CDrawMenu::getInstance()->rigth_side_begin();//++
        echo "<div id='content_area_user_title'>";
        echo "<h2> Lista de Tours </h2>";
        echo "</div>";
$nombre="TableTour.php";
$instance->CDrawSearch($nombre);

echo "<div class='usersettings_statistics' id='operador'>";
include_once("$rutafisica/view/TableTour.php");
echo "</div>";
$instance->DrawAlertsHotels();
CDrawMenu::getInstance()->rigth_side_end();//++
$instance->DrawDivAdBegin("clearfloat");
$instance->DrawDivAdEnd();
//$vars=array("offset"=>"3","limit"=>"23","count"=>"4","word"=>"sdad","");
 //CDrawPage::getinstance()->DrawListado($vars);

include_once("elements/foot.tpl");


?><script>
function recargar(pag1,pagt){    
    var variable_post=pag1;
    var referencia=pagt;
    var de=$("#a").val();
    var hasta=$("#b").val();
    //alert(de+" ------- "+hasta);
    
    $.post(""+referencia, { pag: variable_post, de: de ,hasta: hasta}, function(data){
        //// Verificamos la rpta entregada por miscript.php
            
            $("#operador").html(data);
           
    });         
}
</script>
